package com.pdsu.graduation_design.listener;

import android.view.View;

import androidx.viewpager.widget.ViewPager;

import com.pdsu.graduation_design.R;

public class My_Like_RB_OnClickListener implements View.OnClickListener {

    private ViewPager p_viewPager;

    public My_Like_RB_OnClickListener(ViewPager p_viewPager) {
        this.p_viewPager = p_viewPager;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case  R.id.my_like_co_btn:

                p_viewPager.setCurrentItem(0);
                break;
            case R.id.my_like_st_btn:
                p_viewPager.setCurrentItem(1);
                break;

        }

    }
}
